<?php
require "./config/mysql.php";

class login extends mysqlPdo
{
  public static function do_log($username,$password)

   {
    $pdo=parent::getPdoConnect();
    $pdo -> setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
	$rs = $pdo -> query("select * from user where username = '$username' and password = '$password'");
	$rs -> setFetchMode(PDO::FETCH_ASSOC);
	$re = $rs -> rowCount();
	return $re;






   } 





}



?>
